style.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. .channel-page {
  2. max-width: 1080px;
  3. margin: 0 auto;
  4. // ── 배너 ─────────────────────────────────────────
  5. &__banner {
  6. aspect-ratio: 6.2 / 1;
  7. background: linear-gradient(135deg, var(--bg-subtle), var(--border-default));
  8. border-radius: 12px;
  9. overflow: hidden;
  10. margin: 20px 20px 0 20px;
  11. }
  12. &__banner-img {
  13. width: 100%;
  14. height: 100%;
  15. object-fit: cover;
  16. }
  17. // ── 프로필: 썸네일 + 채널명/메타/버튼 ─────────────
  18. &__profile {
  19. display: flex;
  20. align-items: flex-start;
  21. gap: 16px;
  22. padding: 16px 16px 12px;
  23. }
  24. &__avatar {
  25. width: 72px;
  26. height: 72px;
  27. border-radius: 50%;
  28. overflow: visible;
  29. background: var(--bg-subtle);
  30. flex-shrink: 0;
  31. position: relative;
  32. display: block;
  33. text-decoration: none;
  34. img {
  35. width: 100%;
  36. height: 100%;
  37. object-fit: cover;
  38. border-radius: 50%;
  39. }
  40. &--live {
  41. padding: 2px;
  42. background: linear-gradient(135deg, #f43f5e, #dc2626, #f97316);
  43. background-origin: border-box;
  44. img {
  45. border: 2px solid var(--bg-page, #fff);
  46. }
  47. }
  48. }
  49. &__live-badge {
  50. position: absolute;
  51. bottom: -4px;
  52. left: 50%;
  53. transform: translateX(-50%);
  54. background: #dc2626;
  55. color: #fff;
  56. font-size: 0.5625rem;
  57. font-weight: 700;
  58. letter-spacing: 0.5px;
  59. padding: 1px 6px;
  60. border-radius: 3px;
  61. line-height: 1.4;
  62. border: none;
  63. }
  64. &__avatar-placeholder {
  65. width: 100%;
  66. height: 100%;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. font-size: 1.75rem;
  71. font-weight: 700;
  72. color: var(--text-muted);
  73. border-radius: 50%;
  74. }
  75. &__info {
  76. flex: 1;
  77. min-width: 0;
  78. }
  79. &__name {
  80. font-size: 1.25rem;
  81. font-weight: 700;
  82. display: flex;
  83. align-items: center;
  84. gap: 6px;
  85. line-height: 1.3;
  86. a {
  87. color: inherit;
  88. text-decoration: none;
  89. &:hover {
  90. text-decoration: underline;
  91. }
  92. }
  93. }
  94. &__verified {
  95. display: inline-flex;
  96. align-items: center;
  97. justify-content: center;
  98. width: 16px;
  99. height: 16px;
  100. border-radius: 50%;
  101. background: #3b82f6;
  102. color: #fff;
  103. font-size: 0.5625rem;
  104. flex-shrink: 0;
  105. }
  106. &__meta {
  107. display: flex;
  108. align-items: center;
  109. flex-wrap: wrap;
  110. gap: 4px;
  111. font-size: 0.8125rem;
  112. color: var(--text-muted);
  113. margin-top: 2px;
  114. span + span::before {
  115. content: ' · ';
  116. }
  117. }
  118. // ── 버튼 ────────────────────────────────────
  119. &__buttons {
  120. display: flex;
  121. align-items: center;
  122. gap: 8px;
  123. // 데스크톱 전용 (info 내부)
  124. &--desktop {
  125. display: none;
  126. margin-top: 20px;
  127. }
  128. // 모바일 전용 (profile 아래 별도 줄)
  129. &--mobile {
  130. padding: 0 16px 4px;
  131. }
  132. }
  133. &__subscribe-btn {
  134. display: inline-flex;
  135. align-items: center;
  136. justify-content: center;
  137. padding: 8px 16px;
  138. border-radius: 20px;
  139. background: var(--fg-default, #0f0f0f);
  140. color: var(--bg-page, #fff);
  141. font-size: 0.875rem;
  142. font-weight: 500;
  143. text-decoration: none;
  144. white-space: nowrap;
  145. &:hover {
  146. opacity: 0.85;
  147. }
  148. }
  149. &__donate-btn {
  150. display: inline-flex;
  151. align-items: center;
  152. justify-content: center;
  153. gap: 4px;
  154. padding: 8px 16px;
  155. border-radius: 20px;
  156. background: #3b82f6;
  157. color: #fff;
  158. font-size: 0.875rem;
  159. font-weight: 500;
  160. text-decoration: none;
  161. white-space: nowrap;
  162. &:hover {
  163. background: #2563eb;
  164. }
  165. }
  166. // ── 라이브 ───────────────────────────────────────
  167. &__live {
  168. display: flex;
  169. align-items: center;
  170. gap: 10px;
  171. padding: 10px 16px;
  172. margin: 0 16px;
  173. background: rgba(220, 38, 38, 0.05);
  174. border: 1px solid rgba(220, 38, 38, 0.15);
  175. border-radius: 8px;
  176. }
  177. &__live-dot {
  178. width: 8px;
  179. height: 8px;
  180. border-radius: 50%;
  181. background: #dc2626;
  182. flex-shrink: 0;
  183. animation: pulse-live 1.5s ease-in-out infinite;
  184. }
  185. &__live-title {
  186. flex: 1;
  187. font-size: 0.875rem;
  188. font-weight: 500;
  189. overflow: hidden;
  190. text-overflow: ellipsis;
  191. white-space: nowrap;
  192. }
  193. &__watch-btn {
  194. font-size: 0.8125rem;
  195. color: #3b82f6;
  196. font-weight: 500;
  197. flex-shrink: 0;
  198. white-space: nowrap;
  199. &:hover {
  200. text-decoration: underline;
  201. }
  202. }
  203. // ── 탭 네비게이션 ────────────────────────────────
  204. &__tabs {
  205. display: flex;
  206. border-bottom: 1px solid var(--border-default);
  207. margin-top: 4px;
  208. padding: 0 16px;
  209. }
  210. &__tab {
  211. padding: 12px 16px;
  212. font-size: 0.875rem;
  213. font-weight: 500;
  214. color: var(--text-muted);
  215. cursor: pointer;
  216. position: relative;
  217. &--active {
  218. color: var(--fg-default);
  219. &::after {
  220. content: '';
  221. position: absolute;
  222. bottom: -1px;
  223. left: 0;
  224. right: 0;
  225. height: 2px;
  226. background: var(--fg-default);
  227. border-radius: 2px 2px 0 0;
  228. }
  229. }
  230. &:hover:not(&--active) {
  231. color: var(--fg-default);
  232. }
  233. }
  234. // ── 탭 콘텐츠 ───────────────────────────────────
  235. &__tab-content {
  236. padding: 16px;
  237. }
  238. &__description {
  239. font-size: 0.875rem;
  240. color: var(--text-secondary);
  241. line-height: 1.6;
  242. white-space: pre-line;
  243. }
  244. &__empty {
  245. font-size: 0.875rem;
  246. color: var(--text-muted);
  247. }
  248. // ── 모바일: 버튼 풀너비, 별도 줄 ────────────────
  249. @media (max-width: 767px) {
  250. &__banner {
  251. margin: 10px;
  252. }
  253. &__buttons--mobile {
  254. display: flex;
  255. }
  256. &__subscribe-btn,
  257. &__donate-btn {
  258. flex: 1;
  259. }
  260. }
  261. // ── 데스크톱: 버튼 info 내부, 썸네일 크게 ────────
  262. @media (min-width: 768px) {
  263. &__buttons--desktop {
  264. display: flex;
  265. }
  266. &__buttons--mobile {
  267. display: none;
  268. }
  269. &__profile {
  270. align-items: center;
  271. gap: 20px;
  272. padding: 20px 24px 16px;
  273. }
  274. &__avatar {
  275. width: 128px;
  276. height: 128px;
  277. }
  278. &__name {
  279. font-size: 1.5rem;
  280. }
  281. &__meta {
  282. font-size: 0.875rem;
  283. }
  284. &__tabs {
  285. padding: 0 24px;
  286. }
  287. &__tab-content {
  288. padding: 20px 24px;
  289. }
  290. &__live {
  291. margin: 0 24px;
  292. }
  293. }
  294. }
  295. @keyframes pulse-live {
  296. 0%, 100% { opacity: 1; }
  297. 50% { opacity: 0.4; }
  298. }